﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/activity.Master" AutoEventWireup="true"
    CodeBehind="activitybrowser.aspx.cs" Inherits="pcsse.activity.activitybrowser"
    %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            width: 80px;
        }
    </style>
    <link href="../CSS/bbs.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="hoder_sidebar" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="hoder_maincontent" runat="server">
<div class="p_title">
活动列表
</div>
    <asp:ListView ID="aLv" runat="server" DataSourceID="aLvOds">
        <ItemTemplate>
            <div class="post_item">
                <div class="post_title">
                    <%# Eval("NAME") %></a>
                </div>
                <div class="txt">
                    <%# Eval("CONTENT") %>
                </div>
                <div style="text-align: right;">
                    发布于&nbsp;<%# Eval("TIME") %></div>
            </div>
        </ItemTemplate>
        <EmptyDataTemplate>
            <table id="Table2" runat="server" style="background-color: #FFFFFF; border-collapse: collapse;
                border-color: #999999; border-style: none; border-width: 1px;">
                <tr>
                    <td>
                        未返回数据。
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <LayoutTemplate>
            <div id="itemPlaceholder" runat="server">
            </div>
            <div style="text-align: right">
                <asp:DataPager ID="DataPager1" QueryStringField="p" runat="server" PageSize="5" PagedControlID="aLv">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True" ShowNextPageButton="False"
                            ShowPreviousPageButton="False" FirstPageText="首页" />
                        <asp:NumericPagerField />
                        <asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="True" ShowNextPageButton="False"
                            ShowPreviousPageButton="False" LastPageText="末页" />
                    </Fields>
                </asp:DataPager>
                &nbsp;<a href="#" onclick="javascript:history.go(-1)">返回上一级</a>
            </div>
        </LayoutTemplate>
    </asp:ListView>
    <asp:ObjectDataSource ID="aLvOds" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetDataByPassed" 
        TypeName="ActivityTableAdapters.T_ACTIVITYTableAdapter">
    </asp:ObjectDataSource>
</asp:Content>
